//
//  UIButton+ImageTitleSpace.h
//  MJRefresh
//
//  Created by yons on 15.8.20.
//
/*
 注意: 如果使用Masonry布局时,请在button确定位置大小之后再调用此方法,否则会造成布局的混乱
 */

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, EdgeInsetStyle) {
    EdgeInsetStyleTop = 0,
    EdgeInsetStyleLeft,
    EdgeInsetStyleBottom,
    EdgeInsetStyleRight
};

NS_ASSUME_NONNULL_BEGIN

@interface UIButton (ImageTitleSpace)

/// 按钮图片和标题
/// @param style 位置
/// @param space 间距
- (void)sm_layoutImageTitleSpaceWithEdgeInsetStyle:(EdgeInsetStyle)style imageTitleSpace:(CGFloat)space;

@end

NS_ASSUME_NONNULL_END
